<?php declare(strict_types=1);
/**
 * Created by IntelliJ IDEA
 * Author: 张伯发
 * Date  : 2019/11/21
 * Time  : 11:52
 */

namespace App\Validator\Members;


use Swoft\Validator\Annotation\Mapping\IsString;
use Swoft\Validator\Annotation\Mapping\Length;
use Swoft\Validator\Annotation\Mapping\NotEmpty;
use Swoft\Validator\Annotation\Mapping\Validator;

/**
 * Class MembersVerifyCode
 * @author 张伯发 2019/11/21 11:52
 * @Validator(name="MembersVerifyCodeValidator")
 */
class MembersVerifyCodeValidator
{
    /**
     * @NotEmpty(message="phone not null")
     * @Length(min=11,max=11,message="phone length must be 11 digits ")
     * @IsString()
     * @var string
     */
    protected $phone;

}
